//
//  ViewController.m
//  03-23-PM-单例
//
//  Created by student on 16/3/23.
//  Copyright © 2016年 niit. All rights reserved.
//

#import "ViewController.h"
#import "Person.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
//    Person *person1=[Person sharePerson];
//    person1.name=@"张三";
//    Person *person2=[Person sharePerson];
    
    Person *person3=[[Person alloc]init];
    person3.name=@"张三";
     Person *person4=[[Person alloc]init];
     Person *person5=[[Person alloc]init];
    NSLog(@"%@ %@ %@",person3.name,person4.name,person5.name);
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
